cmake_minimum_required(VERSION 3.19)
project(OpenGLLearn_2)

set(CMAKE_CXX_STANDARD 14)

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

link_directories(lib)
include_directories(include)

add_subdirectory(Test)
add_subdirectory(Chapter4)
add_subdirectory(Chapter5)
add_subdirectory(Chapter6)
add_subdirectory(Chapter7)

# 拷贝lib
file(COPY lib/glfw3dll.lib DESTINATION ${CMAKE_BINARY_DIR}/lib)
file(COPY lib/soil2-debug.lib DESTINATION ${CMAKE_BINARY_DIR}/lib)